Is there a way to get a variable or function from one file to another file in javascript